package com.ld.control.business.equipment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 设备方发表
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-17
 */
@Data
@TableName("equipment_method_tmp")
@Schema(description = "设备方法表")
public class EquipmentMethodTmpModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "设备id")
    private Long equipmentId;

    @Schema(description = "方法名")
    private String name;

    @Schema(description = "方法类型：0设备方法，1系统内部方法")
    private Integer methodType;

    @Schema(description = "是否调试可用，0否：1是，如果是1则是调试设备的方法不能用于真实任务中")
    private Integer debugFlag;

    @Schema(description = "方法执行预估时间")
    private Integer estimatedTime;

    @Schema(description = "排序值越小越靠前")
    private Integer sort;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String EQUIPMENT_ID = "equipment_id";

    public static final String NAME = "name";

    public static final String DEBUG_FLAG = "debug_flag";

    public static final String SORT = "sort";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

}
